//
// Created by Zhao Ziqiu on 2021/8/22.
//

#include "prepare-worker.h"

PrepareWorker::~PrepareWorker() {
}


void PrepareWorker::Execute() {
    mPlayerImpl->Prepare(mUrl);
}

void PrepareWorker::OnOK() {
    mDeferred.Resolve(Env().Undefined());
}

